
#  date 2013/2/21
#  name Execution scripts
#  author lizhi
#  E_mail  guishiye@sina.cn
#  QQ  294596787

import maya.cmds as mc

import sys
sys.path.append('E:/script/facial_sys')

import createJoints02 
import commonScripts02

class ExecutionScripts(createJoints02.buildBaseSetting,commonScripts02.commonScripts):

    #-----------------------------  Composite execution  ------------------------
    def buildFrame(self):
        grpAllName=[]
        facial_Grp='facial_grp'
        if mc.objExists(facial_Grp)== False:
            BridgeGrp=self.OrganizeHierarchyRelations()
            #
            grpAllName.append(BridgeGrp)
            
            createJoints=self.createJoints()
            
            facialCtrlGrp=self.parentRelations()
            #
            grpAllName.append(facialCtrlGrp)
            
            addSDKGrp=self.addSDKGrp()
            offsetRootGrp=self.offsetRootGrp()
            facialOtherGrp=self.facial_jntOther()
            #
            grpAllName.append(facialOtherGrp[0])
            grpAllName.append(facialOtherGrp[1])
            
            createEyeCtrl=self.createEyeCtrl()
            

            
            facial_Grp=self.createfacialgrp()
            mc.parent(grpAllName,facial_Grp)
            
        else:
            sys.stdout.write('settings has existed , only one setting exists at one scene')
        
    def fuck(self):
        addCtrlToSettings=self.addCtrlToSettings()
        
        